# -*- coding: utf-8 -*-
#

# Output file base name for HTML help builder.
htmlhelp_basename = 'jobspiderdoc'


# If false, no index is generated.
#epub_use_index = True
table = {'dongcheng': '东城', 'xicheng': '西城', 'chaoyang': '朝阳', 'haidian': '海淀', 'fengtai': '丰台',
         'shijingshan': '石景山', 'tongzhou': '通州', 'changping': '昌平', 'daxing': '大兴',
         'yizhuangkaifaqu': '亦庄开发区', 'shunyi': '顺义', 'fangshan': '房山', 'mentougou': '门头沟',
         'pinggu': '平谷', 'huairou': '怀柔', 'miyun': '密云', 'yanqing': '延庆', 'yanjiao': '燕郊',
         'xianghe': '香河'}

BOT_NAME = 'lianjia_spider'

SPIDER_MODULES = ['spider.spider']
NEWSPIDER_MODULE = 'spider.spider'


#关注的小区
NEED_DISTTRICT = ["changping","chaoyang","shijingshan",'dongcheng', 'xicheng',  'haidian', 'fengtai']

DB_HOST = "localhost"   #数据库ip
DB_PORT = 3306
DB_USER = "root"         #数据库用户名
DB_PASSWORD = "123456"   #数据库密码
DB_DATABASE = "house"    #数据库

# Override the default request headers:
DEFAULT_REQUEST_HEADERS = {
  'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  'Accept-Language': 'zh-CN,zh;q=0.8',
  'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)'
                ' Chrome/62.0.3202.89 Safari/537.36'
}


ITEM_PIPELINES = {
   'lianjia_spider.pipelines.LianjiaSpiderPipeline': 300,
}


MAIL = {
    "MAIL_SERVER":"smtp.163.com",
    "MAIL_SENDER":"*****",     #发送邮箱
    "MAIL_PASSWORD":"****",    #更换成自己的密码
    "TO_ADDRS":["**@163.com"],
}

